package com.neuedu.service;

import com.neuedu.config.FeignConfiguration;
import com.neuedu.model.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-product",
        configuration = FeignConfiguration.class)
public interface ProductServiceFeign {
    @RequestMapping("/product/{pid}")
    Product queryProductById(@PathVariable("pid") Integer pid);
}
